#include <iostream>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

const std::string terminal = "/dev/ptx/1";

int OpenTerminal()
{
    int fd = open(terminal.c_str(), O_WRONLY);
    dup2(fd, 2);

    close(fd);
    return 0;
}
